//
//  Utils.h
//  CarTown
//
//  Created by xionghao on 15/8/11.
//  Copyright (c) 2015年 熊浩. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^doblock)(NSString *);
@class IWUploadParam;
@class Token;
@interface NetWorkUtils : NSObject
+(void)getToken:(void(^)(NSString *tokenstr))response;
@property (nonatomic,copy) doblock block;
+ (void)get:(NSString *)URLString
 parameters:(id)parameters
    success:(void (^)(id responseObject))success
    failure:(void (^)(NSError *error))failure;
+ (void)post:(NSString *)URLString
  parameters:(id)parameters
     success:(void (^)(id responseObject))success
     failure:(void (^)(NSError *error))failure;

+ (void)upload:(NSString *)URLString parameters:(id)parameters uploadParam:(NSArray *)uploadParamArray success:(void (^)(id responseObject))success failure:(void (^)(NSError *))failure;
@end
